home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 39 / Issue 39.iso / pc / PCSoftware / AceHTML 4.0 / AceHTML4Pro.exe / %MAINDIR% / ScriptDef / Protect Images.sd < prev    next >
Encoding:
INI File  |  2000-08-31  |  1.0 KB  |  60 lines

  1. [SUBJECT]
  2. Description=Protect images to be saved on the disk
  3. ImageIndex=-1
  4. Folder=Quick JavaScript
  5.  
  6.  
  7.  
  8. [HEAD_TEXT]
  9. ;<SCRIPT LANGUAGE="JavaScript">
  10. ;
  11. ;<!-- This script and many more are available free online at -->
  12. ;<!-- The JavaScript Source!! http://javascript.internet.com -->
  13. ;
  14. ;<!-- Begin
  15.  
  16. ;function protect(evt) 
  17. ;{
  18. ;  if (navigator.appName != 'Microsoft Internet Explorer')
  19. ;  {
  20. ;    if (evt.which != 3) 
  21. ;      return true;
  22. ;  };
  23. ;  alert("`message`");
  24. ;  return false;
  25. ;}
  26. ;
  27. ;
  28. ;function trap() 
  29. ;{
  30. ;  if(document.images)
  31. ;  {
  32. ;    if(navigator.appName != 'Microsoft Internet Explorer')
  33. ;    {
  34. ;      for(i=0;i<document.images.length;i++)
  35. ;        document.images[i].onmousedown = protect;
  36. ;    }
  37. ;    else
  38. ;    {
  39. ;      for(i=0;i<document.images.length;i++)
  40. ;        document.images[i].oncontextmenu = protect;
  41. ;    }
  42. ;  }
  43. ;}
  44. ;
  45. ;// End -->
  46. ;</SCRIPT>
  47. ;
  48.  
  49. [BODY_TAG]
  50. ;OnLoad="trap()"
  51.  
  52.  
  53. [BODY_TEXT]
  54. ;
  55.  
  56.  
  57. [`message`]
  58. Kind=S
  59. Value=Sorry, you don't have permission to right-click.
  60.